package top.zhan.facade;

/**
 * @author Zhan
 * @date 2022/10/2 15:41
 */
public class MessageFacade implements IMessageManager{

    private IMessageManager wechatMsgManager = new WechatMessageManager();

    private IMessageManager smsMsgManager = new SmsMessageManager();

    private IMessageManager mailMsgManager = new MailMessageManager();

    private IMessageManager dingMsgManager = new DingDingMessageManager();


    @Override
    public void pushMessage() {
        wechatMsgManager.pushMessage();
        smsMsgManager.pushMessage();
        mailMsgManager.pushMessage();
        dingMsgManager.pushMessage();
    }
}
